package com.whz.eq;

import java.util.Set;

/**
 * @ClassName UnitCircle
 * @Description TODO
 * @Author hong-zhi
 * @Date 2021/5/3 16:16
 * @Version 1.0
 */
public class UnitCircle {
    private static final Set<Point> unitCircle =
            Set.of(new Point(1, 0), new Point(0, 1),
                    new Point(-1, 0), new Point(0, -1));

    public static boolean onUnitCircle(Point point) {
        return unitCircle.contains(point);
    }
}
